package com.njwb.day15.zqzb.method.review;

public class TestDemo03 {
    public static void main(String[] args) {
        //通过反射的方式，生成p1的对象的拷贝
        Person p1 = new Person();
        p1.setName("zhangsan");
        p1.setAge(12);
        p1.setAddress("江苏南京");



        Person p2 = (Person) ObjectUtil.copyObject(p1);

        System.out.println(p1);


        System.out.println(p2);

        System.out.println(p1==p2);



    }
}
